@import "ng-devui/styles-var/devui-var.scss";
@import "src/app/@shared/styles/common.scss";
.da-list-wrap{
  height: 100%;
}
.da-form-card {
  padding-bottom: 24px;
  height: 100%;

  .da-form-card-title {
    margin-bottom: 24px;
  }
}
.single-checkbox {
  display: block;
  margin-right: 8px;
}
.single-checkbox:not(:last-child) {
  margin-bottom: 8px;
}
.form-control-width {
  width: 100%;
}
.devui-form-horizontal .devui-form-label {
  flex: 0 0 90px!important;
}

d-button{
  margin-right: 12px;
}
.btn-group{
  margin-top: 8px;
}

.ms-3{
  margin-left: 8px
}
.mt-2{
  margin-top: 6px
}
.mt-3{
  margin-top:12px
}
.mt-5{
  margin-top: 24px
}
.px-5{
  padding: 25px 0 25px 0!important;
}
.page-footer{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.underline{
  text-decoration: underline;
}

.card{
  width: 100%;
  height: 100%;
  background-color: $devui-base-bg;
  border-radius: $devui-border-radius-card;
  box-shadow: $devui-shadow-length-base $devui-light-shadow;
  padding: 16px 16px 0 16px;
  display: flex;
  flex-direction: column;
  form{
    flex-grow: 1;
    width: 100%;
    display: flex;
   flex-direction: column;
    .grid{
      height: 0;
      flex-grow: 1;
      overflow: auto;
    }
  }
}
.d-flex{
  display: flex;
}
.align-items-center{
  align-items: center;
}
.justify-content-center{
  justify-content: center;
}
.flex-col{
  flex-direction: column;
}
.h-100{
  height: 100%;
}
h2{
  margin: 8px;
  font-size: $devui-font-size-data-overview;
}
.card-title{
  border-bottom: 1px solid #dadada;
  font-size: $devui-font-size-modal-title;
  font-weight: 700;
}
h4{
  margin:0 8px 8px 8px;
  font-size: $devui-font-size-page-title
}
p{
  font-size: 14px;
}

label{
  font-size: $devui-font-size
}
.invalid{
  color: #f66f6a;
}
:host ::ng-deep .devui-toast{
  transform: translateX(-50%);
}
:host ::ng-deep .custom-class {
  .devui-toast-message-success{
  .devui-toast-item {
    width: 26em;
    color: #252b3a;
    background-color:$devui-success-bg;
    .devui-toast-icon-close{
      top: 10px;
      right: 13px;
      .devui-toast-close-icon {
        fill: #252b3a;
      }
    }
    .devui-toast-image {
      top: 15px;
    }
    .devui-toast-message {
      line-height: 23px;
      .devui-toast-title {
        font-size: 16px;
      }
      p {
        font-size: 14px;
      }
    }
  }
  }
  .devui-toast-item {
    color: #f3f3f3;
    background-color:$devui-red-50;
    width: 26em;
    .devui-toast-icon-close{
      top: 10px;
      right: 13px;
      .devui-toast-close-icon {
        fill: #252b3a;
      }
    }
    .devui-toast-image {
      top: 15px;
    }
    .devui-toast-message {
      line-height: 23px;
      .devui-toast-title {
        font-size: 16px;
      }
      p {
        white-space: nowrap;
        font-size: 14px;
      }
    }
  }
  .devui-toast-message-warn{
    .devui-toast-item {
      color: #252b3a;
      background-color:$devui-warning-bg;
      width: 26em;
      .devui-toast-icon-close{
        top: 10px;
        right: 13px;
        .devui-toast-close-icon {
          fill: #252b3a;
        }
      }
      .devui-toast-image {
        top: 15px;
      }
      .devui-toast-message {
        line-height: 23px;
        .devui-toast-title {
          font-size: 16px;
        }
        p {
          white-space: nowrap;
          font-size: 14px;
        }
      }
    }
  }
}

.devui-add-images {
  width: 100px;
  height: 100px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;

  &.devui-upload {
    border: 1px dashed $devui-line;
    border-radius: 2px;
    &:hover {
      border-color: $devui-brand;
      .icon-op-add {
        color: $devui-icon-fill-active;
      }
    }
    &.devui-upload-dropover {
      border-color: $devui-brand;
    }
    .icon-op-add {
      font-size: 16px;
      color: $devui-icon-fill;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }
  .devui-add-items {
    background-color: $devui-default-bg;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    border: 1px solid $devui-line;
    color: $devui-text;
    & > * {
      position: absolute;
      width: 80%;
      left: 50%;
      transform: translateX(-50%);
    }
    span {
      text-align: center;
    }
    .devui-cancel-upload {
      display: block;
      margin-top: 8px;
      &:hover {
        color: $devui-link;
      }
    }
    .filename {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      top: 20%;
    }
    .devui-loading {
      top: 60%;
    }
    .icon-file {
      top: 20%;
      font-size: 32px;
    }
    &.devui-upload-failed,
    &.devui-upload-success {
      background-color: $devui-global-bg-normal;
      .filename {
        top: 80%;
      }
    }
    &.devui-upload-failed {
      border-color: $devui-danger-line;
      color: $devui-danger;
      .icon-file {
        color: $devui-danger-line;
      }
    }

    &.devui-upload-success {
      border-color: $devui-success-line;
      color: $devui-success;

      .icon-file {
        color: $devui-success-line;
      }
    }
  }

  .icon {
    font-size: 16px;
    color: $devui-icon-bg;
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    &.icon-running {
      left: 35%;
    }

    &.devui-failed-icon {
      left: 60%;
    }
  }
  &:hover {
    .devui-upload-failed,
    .devui-upload-success {
      &::before {
        position: absolute;
        content: '';
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border: 1px solid transparent;
        border-radius: 2px;
        background-color: #000000;
        opacity: 0.4;
        z-index: 1;
      }

      & + .icon-delete {
        display: block;
        z-index: 2;

        & + .icon-running {
          display: block;
          z-index: 2;
        }
      }
    }
  }
}
.Required{
  color: $devui-danger;
}
:host ::ng-deep .devui-form-horizontal .devui-form-operation[_nghost-ng-c1609466844] {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0px;
  border-top: 1px solid #e8e8e8;
}
d-form-control{
  max-width: 400px;
  border-radius: var(--devui-border-radius,2px);
  &.dTextarea{
    max-width: 80%!important;
  }
}
.cascader{
  border-radius: var(--devui-border-radius,2px);
  border:1px  solid #f66f6a;
}
.grid{
  overflow: auto;
}
d-form-label{
  font-size: $devui-font-size-card-title	;
}
